package com.cwz.gateway.config.properties;

import com.cwz.core.captcha.support.CaptchaStyle;
import com.cwz.core.captcha.support.CaptchaType;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

/**
 * @program: w-demo
 * @description: 验证码配置
 * @author: Wen
 **/
@Configuration
// nacos 上修改可自行刷新
@RefreshScope
@ConfigurationProperties(prefix = "security.captcha")
@Data
public class CaptchaProperties {
	/**
	 * 验证码开关
	 */
	private Boolean enabled;

	/**
	 * 验证码风格
	 */
	private CaptchaStyle style = CaptchaStyle.IMG;

	/**
	 * 验证码验证类型
	 */
	private CaptchaType type = CaptchaType.DEFAULT;
}
